package com.common.exception;

/**
 * Created by dell on 2016/7/29.
 */
public class SubmitException extends RuntimeException {

    private static final long serialVersionUID = -4321842465818992079L;
    private String errCode;
    private String errMsg;

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public SubmitException(String errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public SubmitException(String errMsg) {
        this.errCode = "3000";
        this.errMsg = errMsg;
    }

    public class Code{
        public final static String SUBMITREPEAT="3101";  //系统重复提交

        public final static String HZNUM="3201";  //提交频率限制

    }
}
